package com.ljh.onlinetest.base;

import com.ljh.onlinetest.context.WebContext;
import com.ljh.onlinetest.domain.User;
import com.ljh.onlinetest.utils.ModelMapperSingle;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author ljh
 * @ClassName BaseApiController.java
 * @createTime 2022年01月12日
 */
public class BaseApiController {

    protected final static String DEFAULT_PAGE_SIZE = "10";

    protected final static ModelMapper modelMapper = ModelMapperSingle.Instance();

    @Autowired
    protected WebContext webContext;

    protected User getCurrentUser(){
        return webContext.getCurrentUser();
    }
}
